package com.epfresh.supplier.widget;

/**
 * Created by zhuli on 2017/8/22.
 */

public interface ViewVariable {

    /**
     * eg:从BillingCheckActivity需要客户信息
     * 1.BillingCheckActivity 实现 ViewVariable
     * 2.BillingCheckActivity 的点击方法中增加
     *      Intent intent = new Intent(BillingCheckActivity.this, CustomerInfoActivity.class);
     *      intent.setAction(BILLING_CHECK_ACTIVITY);
     *      startActivityForResult(intent, 1000);
     * 3.BillingCheckActivity 重写 onActivityResult方法
     *      @Override
     *      protected void onActivityResult(int requestCode, int resultCode, Intent data) {
     *          switch (requestCode) {
     *              case 1000:
     *               if (RESULT_OK == resultCode) {
     *                  CustomerItem mDetailItem = data.getParcelableExtra("CustomerItem");
     *                  mLlCustomersUnchoose.setVisibility(View.GONE);
     *                  mLlCustomersChoose.setVisibility(View.VISIBLE);
     *                  mTvName.setText(mDetailItem.getName());
     *                  mTvTel.setText(mDetailItem.getPhone());
     *                  }
     *              break;
     *          }
     *       }
     *  4.CustomerContactFragment的onItemClick
     *  增加一行case BILLING_CHECK_ACTIVITY：
     *
     */
    String HOME_ACTIVITY = "HomeActivity";
    String BILLING_CHECK_ACTIVITY = "BillingCheckActivity";
    String CUSTOMER_INFO_ACTIVITY = "CustomerInfoActivity";
    String CUSTOMER_DETAIL_ACTIVITY = "CustomerDetailActivity";
    String CUSTOMER_GROUP_ACTIVITY = "CustomerGroupActivity";
    String CUSTOMER_GROUP_CONTANCT_ACTIVITY = "CustomerGroupContactActivity";
    String CART_ACTIVITY = "CartActivity";
    String CUSTOMER_EDIT_ADD_ACTIVITY = "CustomerEditAddActivity";
    String STANDING_BOOK_FILTER_FRAGMENT = "StandingBookFilterFragment";



}
